<template>
  <div class="header">
    <div class="headerbtn">
      <el-button @click="loginOut" type="danger" >退出</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "Header",
  methods: {
    loginOut(){
      window.sessionStorage.clear('token')
      this.$router.push('/login')
    }

  }
}
</script>

<style scoped>
.header {
  color: #5daf34;
}
.headerbtn{
  float: right;
}
</style>
